package com.threeti.mecool.core.domain.model.plan.aspects;

import javax.persistence.*;

import org.springframework.beans.factory.annotation.Configurable;
import com.threeti.mecool.core.domain.model.plan.pojo.Step;
import com.threeti.mecool.core.domain.model.plan.pojo.UserJob;
import com.threeti.mecool.core.domain.model.plan.pojo.UserStep;
import com.threeti.mecool.core.domain.model.plan.pojo.UserTask;

privileged aspect UserStep_AJ_Entity {
	declare @type: UserStep:@Configurable;
	declare @type: UserStep:@Entity;
  declare @type: UserStep:@Table(name = "DM_WF_USER_STEP");

	declare @field: Long UserStep.id:@Id;
	declare @field: Long UserStep.id:@GeneratedValue(strategy = GenerationType.AUTO);
	declare @field: Integer UserStep.version:@Version;

	declare @field: UserJob UserStep.userJob:@ManyToOne(optional = false);
	declare @field: Step UserStep.step:@ManyToOne(optional = false);
	declare @field: UserTask UserStep.userTask:@OneToOne(mappedBy = "userStep", cascade = CascadeType.ALL);
}
